<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/include/taglibs.tag"%>
<% Integer n=null; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/WEB-INF/jsp/include/backBase.jsp"%>
<link href='<%=resources%>/insert/css/datetimepicker.css'
	rel='stylesheet'>
<script src="<%=resources%>/insert/js/jquery.datetimepicker.js"></script>
<link rel="stylesheet" href="<%=resources%>/myCss/back/article.css">
<script type="text/javascript" src="<%=resources%>/myJs/back/article.js"></script>
<title>编辑文章</title>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="row-fluid">
					<div class="span12">
						<a style="margin-top: 10px;" href="javascript:history.go(-1)"
							class="btn btn-success">返回</a>
						<form style="margin-top: 10px;"
							action="<%=ctx%>/back/article/addArticle.do" method="post"
							enctype="multipart/form-data">
							<p>
								<label>标题:</label> <input name="title" type="text"
									class="form-control" />
							</p>
							<p>
								<label>文章图片:</label> <input name="articleImg" type="file"
									class="form-control" accept=".jpg,.bmp,.jpeg,.gif" id="articleImg"/>
							</p>
							<p>
								<a class="btn btn-default"
									href='javascript:clearField("articleImg")'>取消选择</a>
							</p>
							<p>
								<label>栏目:</label> <select name="cid" type="text"
									class="form-control">
									<option value="0">无</option>
									<c:forEach items="${lc }" var="c">
										<option value="${c.id }">${c.name }</option>
									</c:forEach>
								</select>
							</p>
							<p>
								<label>标签:</label> <select name="tid" type="text"
									class="form-control">
									<option value="0">无</option>
									<c:forEach items="${tags }" var="t">
										<option value="${t.id }">${t.name }</option>
									</c:forEach>
								</select>
							</p>
							<p>
								<label>日期:</label> <input name="publishTime" type="text"
									class="form-control datetime" />
							</p>
							<p>
								<label>文章内容:</label>
								<textarea name="content" type="text" id="content"></textarea>
							</p>
							<p>
								<label>文章摘要:</label>
								<textarea name="summary" type="text" class="form-control"></textarea>
							</p>
							<div class="channel-list"></div>
							<button type="submit" class="btn btn-default">提交</button>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>